const express = require('express');
const router = express.Router();
const { getDashboardData, updateTaskProgress } = require('../controllers/dashboardController');
const { authenticate } = require('../middleware/auth');

// 获取Dashboard数据
router.get('/', authenticate, getDashboardData);

// 更新任务进度
router.post('/task/update', authenticate, updateTaskProgress);

module.exports = router;

